import http from '../service/http'

// get请求
// 获取聊天接口
export function getGetPrivateLetterAPI(myId, userId,) {
  return http.get(`user/${myId}/getPrivateLetter/${userId}`)
}
// 读取聊天接口
export function getReadPrivateLetterAPI(myId, userId,) {
  return http.get(`user/${myId}/readPrivateLetter/${userId}`)
}

// post请求
// 发送聊天信息
export function postPrivateLetterAPI(fromUserId, toUserId, params) {
  return http.post(`user/${fromUserId}/privateLetter/${toUserId}`, params)
}